"use strict";

exports.__esModule = true;
const command = exports.command = {
  name: 'extendCellsSelectionToColumns',
  callback(hot) {
    const {
      selection
    } = hot;
    const {
      highlight,
      from,
      to
    } = hot.getSelectedRangeActive();
    selection.markSource('keyboard');
    if (selection.isSelectedByRowHeader()) {
      selection.selectAll(true, true);
    } else {
      hot.selectColumns(from.col, to.col, highlight);
    }
    selection.markEndSource();
  }
};